import request from "@/utils/request";

/**
 * 人员模板api接口集合
 * @method getList 列表
 * @method postAdd 新增
 * @method putEdit 修改
 * @method deleteDel 删除
 */

export function getList(params) {
    return request({
        url: "/mes/allotSchemaController/list",
        method: "get",
        params,
    });
}
export function postAdd(data) {
    return request({
        url: "/pdm/pdmModelController/add",
        method: "post",
        data: data,
    });
}
export function putEdit(data) {
    return request({
        url: "/pdm/pdmModelController/edit",
        method: "put",
        data: data,
    });
}
export function deleteDel(ids) {
    return request({
        url: "/mes/allotSchemaController/" + ids,
        method: "delete",
    });
}
export function listSchemaItem(params) {
    return request({
        url: "/mes/allotSchemaController/listSchemaItemHasChildren",
        method: "get",
        params
    });
}
export function checkStatus(mode,data){
    return request({
        url:`/mes/allotSchemaController/${mode}`,
        method: "post",
        data: data,
    });
}
